package com.mrx.xfriendship.event.event;

import com.mrx.commons.exception.BusinessException;
import org.springframework.context.ApplicationEvent;

/**
 * @author : 肖康宁
 * @since : 2022-12-09 14:37
 **/
public class ErrorEvent extends ApplicationEvent {

    public ErrorEvent(BusinessException source) {
        super(source);
    }

    public ErrorEvent(Throwable t) {
        super(t);
    }

    @Override
    public Throwable getSource() {
        return (Throwable) source;
    }

}
